﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BOSS.Framework.Search;
using BOSS.Domain.Security;

namespace BOSS.Dao.Security
{
    /// <summary>
    /// 账号 Dao 接口
    /// </summary>
    public interface IAccountDao : IEntityDao<Account, int>, ISearchSupport<Account>
    {
        /// <summary>
        /// 根据登录名获取员工
        /// </summary>
        /// <param name="loginName"></param>
        /// <returns></returns>
        Account FindByLoginName(string loginName);

        /// <summary>
        /// 根据工号获取员工
        /// </summary>
        /// <param name="employeeId"></param>
        /// <returns></returns>
        Account FindByEmployeeId(string employeeId);

        /// <summary>
        /// 查询所有的有效的帐号
        /// </summary>
        /// <returns></returns>
        IList<Account> SelectAllEnabled();
    }
}
